package com.example.demo.controller;

import com.example.demo.entity.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class helloController {
    @Value("${neu.className}")
    private String className;
    @Value("${neu.count}")
    private int count;

    @Autowired
    Teacher teacher;

    @RequestMapping("hello")
    @ResponseBody
    public String hello() {
        return "实训班级：" + className + "人数：" + count + "hello spring boot" + "老师：" + teacher;
    }
}
